<?php /* Smarty version Smarty-3.1.18, created on 2017-02-20 12:20:55
         compiled from "Mobile/views/article/detail.html" */ ?>
<?php /*%%SmartyHeaderCode:65954736658aa6ea75751a6-27728789%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '0ca89c56baecdd4ff1f11a2ca7cbc1604756bec9' => 
    array (
      0 => 'Mobile/views/article/detail.html',
      1 => 1487562040,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '65954736658aa6ea75751a6-27728789',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'item' => 0,
    'reward' => 0,
    'key' => 0,
    'val' => 0,
    'list' => 0,
    'like_article' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.18',
  'unifunc' => 'content_58aa6ea760bc33_05145309',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_58aa6ea760bc33_05145309')) {function content_58aa6ea760bc33_05145309($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ("public/header.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
	
<link rel="stylesheet" type="text/css" href="/static/mobile/css/photoswipe.css">
<!--文章详情 内容-->
	<div class="article-container mb10">
		<div class="article-head border f-cb">
			<a href="javascript:;" onclick="funArticleOther()" class="fl head-img mr5"><img src="<?php echo $_smarty_tpl->tpl_vars['item']->value['head_img'];?>
"/></a>
			<button class="follow fr iconfont" id="_follow" onclick="funArticleFollow()">
				<i><?php if ($_smarty_tpl->tpl_vars['item']->value['is_fan']) {?>&#xe66f; 已关注<?php } else { ?>&#xe640; 未关注<?php }?></i>
			</button>
			<div class="">
				<a href="javascript:;" class="name"><?php echo $_smarty_tpl->tpl_vars['item']->value['nickname'];?>
<img src="/static/mobile/img/vip/vip2.png"/></a>
				<p class="time mt2"><?php echo $_smarty_tpl->tpl_vars['item']->value['create_time'];?>
</p>
			</div>
		</div>
		<p class="article-title plr15 ptb10 font-bold">
			<?php echo $_smarty_tpl->tpl_vars['item']->value['title'];?>

		</p>
		<b class="article-title-bar"></b>
		<div class="text  gallery pic-list">
                    <?php echo $_smarty_tpl->tpl_vars['item']->value['content'];?>

		</div>
		<img src="/static/mobile/img/shang.jpg" style="width: 60px; margin: 0 auto;"/>
		<div class="admire plr15 ptb5 mt15">
                    <p class="text-center font12 col-grey999 pb5">已有<i class="col-red"><?php echo count($_smarty_tpl->tpl_vars['reward']->value);?>
 人</i>打赏</p>
			<ul class="f-cb">
				<?php  $_smarty_tpl->tpl_vars['val'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['val']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['reward']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['val']->key => $_smarty_tpl->tpl_vars['val']->value) {
$_smarty_tpl->tpl_vars['val']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['val']->key;
?>
                                <?php if (($_smarty_tpl->tpl_vars['key']->value+1)<=5) {?>
                                <li><a href="<?php echo $_smarty_tpl->tpl_vars['val']->value['space_url'];?>
"><img src="<?php echo $_smarty_tpl->tpl_vars['val']->value['head_img'];?>
"/></a></li>
                                <?php }?>
                                <?php } ?>
                                <?php if (count($_smarty_tpl->tpl_vars['reward']->value)>5) {?>
				<div class="disnone">
                                    <?php  $_smarty_tpl->tpl_vars['val'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['val']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['reward']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['val']->key => $_smarty_tpl->tpl_vars['val']->value) {
$_smarty_tpl->tpl_vars['val']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['val']->key;
?>
                                    <?php if (($_smarty_tpl->tpl_vars['key']->value+1)>5) {?>
                                    <li><a href="<?php echo $_smarty_tpl->tpl_vars['val']->value['space_url'];?>
"><img src="<?php echo $_smarty_tpl->tpl_vars['val']->value['head_img'];?>
"/></a></li>
                                    <?php }?>
                                    <?php } ?>
				</div>
				<li><a href="javascript:;"></a></li>
                                <?php }?>
			</ul>
		</div>
		<div class="detail-label plr15 ptb5">
			<p class="con-title-app mb5">相关标签</p>
			<p class="relative-label">
                            <?php  $_smarty_tpl->tpl_vars['val'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['val']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['item']->value['tags']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['val']->key => $_smarty_tpl->tpl_vars['val']->value) {
$_smarty_tpl->tpl_vars['val']->_loop = true;
?>
				<a href="javascript:;"><?php echo $_smarty_tpl->tpl_vars['val']->value['tname'];?>
</a>
                            <?php } ?>
			</p>
		</div>
		<div class="comments plr15 ptb5 sliding-jq">
			<p class="con-title-app mb5">大家说</p>
			<?php if ($_smarty_tpl->tpl_vars['list']->value) {?>
			<ul class="article-head">
				<?php  $_smarty_tpl->tpl_vars['val'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['val']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['val']->key => $_smarty_tpl->tpl_vars['val']->value) {
$_smarty_tpl->tpl_vars['val']->_loop = true;
?>
				<li class="f-cb ptb10">
					<a href="javascript:;" class="fl head-img" id="<?php echo $_smarty_tpl->tpl_vars['val']->value['uid'];?>
"><img src="<?php echo $_smarty_tpl->tpl_vars['val']->value['head_img'];?>
"/></a>
					<div class="pl45">
						<!--点赞-->
						<a href="javascript:;" class="iconfont fr"></a>
						<a href="javascript:;" class="iconfont fr mt10">
							<?php echo $_smarty_tpl->tpl_vars['val']->value['create_time'];?>

						</a>
						<a href="javascript:;" class="name mt10"><?php echo $_smarty_tpl->tpl_vars['val']->value['comment_nickname'];?>
<img src="/static/mobile/img/vip/vip1.png"/></a>
							<?php if (($_smarty_tpl->tpl_vars['val']->value['is_reply'])==1) {?><p class="text mt5 publicText">回复<a href="javascript:;" class="col-red" id="<?php echo $_smarty_tpl->tpl_vars['val']->value['repay_user_id'];?>
"><?php echo $_smarty_tpl->tpl_vars['val']->value['reply_nickname'];?>
</a>：<?php echo $_smarty_tpl->tpl_vars['val']->value['content'];?>
</p><?php }?>
							<?php if (($_smarty_tpl->tpl_vars['val']->value['is_reply'])==0) {?><p class="text mt5 publicText"><?php echo $_smarty_tpl->tpl_vars['val']->value['content'];?>
</p><?php }?>
					</div>
				</li>
				<?php } ?>
			</ul>
			<p class="more-comment"><a href="javascript:;" onclick="funArticleCommentMore()">查看更多&gt;</a></p>
			<?php } else { ?>
			<div class="loading" id="noresults">
                <a href="javascript:;" class="load-success empty-load">
                    <img class="no_comment" src="/static/mobile/img/none/no_comment.jpg">
                </a>
            </div>
			<?php }?>
		</div>
		<!--你可能还喜欢-->
		<div class="may-love">
			<p><font class="iconfont icon-maylove">&#xe827;</font>你可能还喜欢</p>
			<section class="love-list">
				<?php  $_smarty_tpl->tpl_vars['val'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['val']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['like_article']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['val']->key => $_smarty_tpl->tpl_vars['val']->value) {
$_smarty_tpl->tpl_vars['val']->_loop = true;
?>
				<section>
	                <a id="<?php echo $_smarty_tpl->tpl_vars['val']->value['article_id'];?>
" class="article-box f-cb" onclick="funArticleGo(this.id)">
	                    <div class="pic fl">
	                        <img class="lazy" data-original="<?php echo $_smarty_tpl->tpl_vars['val']->value['thumb'];?>
" alt="<?php echo $_smarty_tpl->tpl_vars['val']->value['title'];?>
" src="<?php echo $_smarty_tpl->tpl_vars['val']->value['thumb'];?>
">
	                    </div>
	                    <div class="article-detail">
	                        <p class="title"><?php echo $_smarty_tpl->tpl_vars['val']->value['title'];?>
</p>
	                        <p class="state f-cb">
	                            <font class="iconfont fl"></font><span class="fl mr8"><?php echo $_smarty_tpl->tpl_vars['val']->value['commentnum'];?>
</span><font class="iconfont fl mr3"></font><span class="fl"><?php echo $_smarty_tpl->tpl_vars['val']->value['readnum'];?>
</span>
	                            <i class="fr">
	                                <img src="<?php echo $_smarty_tpl->tpl_vars['val']->value['head_img'];?>
" class="mr3" alt="<?php echo $_smarty_tpl->tpl_vars['val']->value['nickname'];?>
">
	                                <span><?php echo $_smarty_tpl->tpl_vars['val']->value['nickname'];?>
</span>
	                            </i>
	                        </p>
	                    </div>
	                </a>
	            </section>
				<?php } ?>
			</section>
		</div>
	</div>
<!--大图预览-->
	<div class="pswp" tabindex="-1" role="dialog" aria-hidden="true">
		<div class="pswp__bg"></div>
		<div class="pswp__scroll-wrap">
			<div class="pswp__container" style="transform: translate3d(0px, 0px, 0px);">
				<div class="pswp__item" style="display: block; transform: translate3d(-464px, 0px, 0px);"></div>
				<div class="pswp__item" style="transform: translate3d(0px, 0px, 0px);"><div class="pswp__zoom-wrap" style="transform: translate3d(15px, 159px, 0px) scale(0.518919);"><img class="pswp__img pswp__img--placeholder" src="http://static.tan66.com/upfiles/image/20161228/11896048550.jpeg" style="width: 740px; height: 416px;"><img class="pswp__img" src="http://static.tan66.com/upfiles/image/20161228/11896048550.jpeg" style="backface-visibility: hidden; display: block; opacity: 1; width: 740px; height: 416px;"></div></div>
				<div class="pswp__item" style="display: block; transform: translate3d(464px, 0px, 0px);"><div class="pswp__zoom-wrap" style="transform: translate3d(0px, 230px, 0px) scale(0.69);"><img class="pswp__img" src="http://static.tan66.com/upfiles/image/20161228/12286158242.jpg" style="backface-visibility: hidden; opacity: 1; width: 600px; height: 400px;"></div></div>
			</div>
			<div class="pswp__ui pswp__ui--hidden">
				<div class="pswp__top-bar">
					<div class="pswp__counter">1 / 2</div>
					<button class="pswp__button pswp__button--close pswp__element--disabled" title="Close (Esc)"></button>
					<button class="pswp__button pswp__button--share pswp__element--disabled" title="Share"></button>
					<button class="pswp__button pswp__button--fs pswp__element--disabled" title="Toggle fullscreen"></button>
					<button class="pswp__button pswp__button--zoom pswp__element--disabled" title="Zoom in/out"></button>
					<div class="pswp__preloader">
						<div class="pswp__preloader__icn">
							<div class="pswp__preloader__cut">
								<div class="pswp__preloader__donut"></div>
							</div>
						</div>
					</div>
				</div>
				<div class="pswp__loading-indicator">
					<div class="pswp__loading-indicator__line"></div>
				</div>
				<div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap pswp__element--disabled">
					<div class="pswp__share-tooltip">
						<a href="#" class="pswp__share--facebook"></a>
						<a href="#" class="pswp__share--twitter"></a>
						<a href="#" class="pswp__share--pinterest"></a>
						<a href="#" download="" class="pswp__share--download"></a>
					</div>
				</div>
				<button class="pswp__button pswp__button--arrow--left" title="Previous (arrow left)"></button>
				<button class="pswp__button pswp__button--arrow--right" title="Next (arrow right)"></button>
				<div class="pswp__caption pswp__element--disabled">
					<div class="pswp__caption__center"></div>
				</div>
			</div>
		</div>
	</div>
<script type="text/javascript" src="/static/js/h5-mobile-common-min-1.0.js"></script>
<script type="text/javascript" src="/static/js/photoswipe.min+photoswipe-ui-default.min+jquery.trasit+jquery.hammer+hammer+initPhotoSwipeFromDOM.js"></script>
<script type="text/javascript" charset="utf-8">
	//点击头像跳转
	function funArticleOther(){
		
	};
	//查看更多
	function funArticleCommentMore(){
	};
	
	//获取你可能还喜欢文章的id
	function funArticleGo(e){
	};
	
	//未关注、关注 点击事件
	function funArticleFollow(){
	};
	//未关注、关注 状态
	function funArticleFollowChange(str){
		var _follow = document.getElementById("_follow");
		if(str == 1){
			_follow.innerHTML='&#xe66f; 已关注';
			addClass(_follow,'follow2');
            showGuanZhu = false;
		}else{
			_follow.innerHTML='&#xe640; 未关注';
			removeClass(_follow,'follow2');
            showGuanZhu = true;
		}
	};

	$(function(){
		//打赏列表
		$('.admire a').click(function(){
			$(this).parents('.admire').find('.disnone').stop().toggle();
			$(this).hasClass('a') ? $(this).removeClass('a') : $(this).addClass('a');
			admiretop = $(this).parents('.admire').offset().top;
			$('html,body').stop().animate({scrollTop: admiretop -'50' + 'px' },800);
		});
                $(".pic-list img").gallery_img();//图片预览
	});
</script>
<?php echo $_smarty_tpl->getSubTemplate ("public/footer.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
	<?php }} ?>
